<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            font-size: 30px;
            width: 500px;
            height: 500px;
            background-color: crimson;
        }
    </style>
</head>
<body>
    <SCRipt src="./lib/vue-2.5.16.js">
    
    </SCRipt>
    <div id="app">
        <button>按钮</button>
        <div class="box" v-on:mousemove="move">
            x:{{x}}
            ------------------------------------
            y:{{y}}
        </div>
    </div>
    <script> 
        const app = new Vue({
            el:'#app',
            data:{
                x:'',
                y:'',
            }, 
            methods:{
                move(e){
                    console.log(e);
                    this.x=e.screenX
                    this.y=e.screenY
                }
            }
        });

    </script>
</body>
</html>